package com.ruoyi.web.controller.TiebaChat.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 贴吧聊天对象 tieba_chat
 *
 * @author yong
 * @date 2025-03-09
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tieba_chat")
@ApiModel(value = "TiebaChat", description = "贴吧聊天实体")
public class TiebaChat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 聊天主键id */
    @TableId(type= IdType.AUTO)
    @ApiModelProperty("聊天主键id")
    private Long id;

    /** 发送方 */
    @Excel(name = "发送方")
    @ApiModelProperty("发送方")
    private Long senderId;

    /** 接收方 */
    @Excel(name = "接收方")
    @ApiModelProperty("接收方")
    private Long receiverId;

    /** 当前登录的用户id */
    @Excel(name = "当前登录的用户id")
    @ApiModelProperty("当前登录的用户id")
    private Long userId;

    /** 聊天的用户id */
    @Excel(name = "聊天的用户id")
    @ApiModelProperty("聊天的用户id")
    private Long userOtherId;

    /** 部门id */
    @Excel(name = "部门id")
    @ApiModelProperty("部门id")
    private Long deptId;

    /** 消息 */
    @Excel(name = "消息")
    @ApiModelProperty("消息")
    private String message;

    /** 消息类型 */
    @Excel(name = "消息类型")
    @ApiModelProperty("消息类型")
    private String messageType;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty("状态")
    private String status;

    /** 罗辑删除 */
    @ApiModelProperty("罗辑删除")
    private Integer delFlag;

}
